package com.scau402.system.service;

import java.util.List;

import com.scau402.common.core.domain.entity.SysUser;
import com.scau402.system.domain.WmsBasicClient;

/**
 * 客户资料Service接口
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
public interface IWmsBasicClientService 
{
    /**
     * 查询客户资料
     * 
     * @param id 客户资料主键
     * @return 客户资料
     */
    public WmsBasicClient selectWmsBasicClientById(Long id);

    /**
     * 查询客户资料列表
     * 
     * @param wmsBasicClient 客户资料
     * @return 客户资料集合
     */
    public List<WmsBasicClient> selectWmsBasicClientList(WmsBasicClient wmsBasicClient);

    /**
     * 新增客户资料
     * 
     * @param wmsBasicClient 客户资料
     * @return 结果
     */
    public int insertWmsBasicClient(WmsBasicClient wmsBasicClient);

    /**
     * 修改客户资料
     * 
     * @param wmsBasicClient 客户资料
     * @return 结果
     */
    public int updateWmsBasicClient(WmsBasicClient wmsBasicClient);

    /**
     * 批量删除客户资料
     * 
     * @param ids 需要删除的客户资料主键集合
     * @return 结果
     */
    public int deleteWmsBasicClientByIds(Long[] ids);

    /**
     * 删除客户资料信息
     * 
     * @param id 客户资料主键
     * @return 结果
     */
    public int deleteWmsBasicClientById(Long id);

    public String getMaxCode(SysUser user);

    public String getClientCode(String loginUserTenantCode) throws InterruptedException;

    public boolean checkClientCodeUnique(WmsBasicClient wmsBasicClient);

    public boolean checkClientNameUnique(WmsBasicClient wmsBasicClient);

    String getNewCode(SysUser user) throws InterruptedException;

    /**
     * 启用、停用客户
     * @param wmsBasicClientList
     * @return
     */
    public int startOrStop(List<WmsBasicClient> wmsBasicClientList);
}
